var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    B1: true,
    B2: true,
    B3: true,
    B4: true,
    B5: true,
  },
  onLoad: function () {    
    if (app.globalData.pright.indexOf("B1,") >= 0) {
      this.setData({ B1: false });
    }
    if (app.globalData.pright.indexOf("B2,") >= 0) {
      this.setData({ B2: false });
    }
    if (app.globalData.pright.indexOf("B3,") >= 0) {
      this.setData({ B3: false });
    }
    if (app.globalData.pright.indexOf("B3,") >= 0) {
      this.setData({ B4: false });
    }
    if (app.globalData.pright.indexOf("B3,") >= 0) {
      this.setData({ B5: false });
    }
  },
  
  goto_K_ManagerCus: function (e) {
    wx.navigateTo({
      url: "K_ManagerCus"
    })
  },
  goto_QueryCompletion: function (e) {
    wx.navigateTo({
      url: "QueryCompletion"
    })
  },
  goto_ExpensesReport: function (e) {
    wx.navigateTo({
      url: "ExpensesReport"
    })
  },
  goto_QueryStock: function (e) {
    wx.navigateTo({
      url: "QueryStock"
    })
  },
  goto_ProductSaleRank: function (e) {
    wx.navigateTo({
      url: "ProductSaleRank"
    })
  },
  goto_CollectionRank: function (e) {
    wx.navigateTo({
      url: "CollectionRank"
    })
  },
})